package ldk.util.adapterwrappers;

import android.view.View;
import android.view.ViewGroup;

/**
 * Created by ldkxingzhe@163.com on 2017/5/22.
 */
public class LoadMoreViewHolderWithGone extends LoadMoreViewHolder{
    public LoadMoreViewHolderWithGone(ViewGroup parent) {
        super(parent);
    }

    public LoadMoreViewHolderWithGone(View view){
        super(view);
    }

    @Override
    public void setState(int state) {
        switch (state){
            case NO_MORE:
                stateNoMoreView.setVisibility(View.GONE);
                stateLoadingMoreView.setVisibility(View.GONE);
                break;
            case LOADING:
                stateLoadingMoreView.setVisibility(View.VISIBLE);
                break;
        }
    }
}
